home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
20
/
9
/
DISK2092.ZIP
/
RBBS-LIT.ZIP
/
LIT
/
ASMFFIND.LIT
< prev
next >
Wrap
Text File
|
1990-01-13
|
2KB
|
38 lines
*[ASMFFIND.LIT]***************************************************************
* Description: Removes support for BASIC file find *
* RBBS-PC Level: CPC17.3 √ AM *
* Module Affected: RBBSSUB1.BAS *
* Selection Option: ASMFFIND = ON *
* Additional files: BASFFIND.LIT *
******************************************************************************
20219 ' $SUBTITLE: 'FINDITX - subroutine to find if a file exists'
' $PAGE
'
' NAME -- FINDITX
'
' INPUTS -- PARAMETER MEANING
' FilName$ NAME OF FILE TO FIND
' FileNum # TO OPEN FILE AS ' KG061001
'
' OUTPUTS -- ZOK TRUE IF FILE EXISTS
' ZErrCode ERROR CODE
'
' PURPOSE -- Determine whether a file exists
'
SUB FINDITX (FilName$,FileNum) STATIC ' KG061001
ON ERROR GOTO 65000
ZErrCode = 0
ZOK = ZFalse
IF LEN(FilName$) < 1 THEN _
EXIT SUB
CALL FindFile (FilName$,ZOK)
IF NOT ZOK THEN _
EXIT SUB
20221
20222 CLOSE FileNum ' KG061001
20223 CALL OpenWork (FileNum,FilName$) ' KG061001
IF ZErrCode = 64 OR ZErrCode = 76 THEN _
EXIT SUB
ZOK = ZTrue
END SUB